package com.dianping.cat.home.heavy.transform;

import com.dianping.cat.home.heavy.IVisitor;
import com.dianping.cat.home.heavy.entity.HeavyCache;
import com.dianping.cat.home.heavy.entity.HeavyCall;
import com.dianping.cat.home.heavy.entity.HeavyReport;
import com.dianping.cat.home.heavy.entity.HeavySql;
import com.dianping.cat.home.heavy.entity.Service;
import com.dianping.cat.home.heavy.entity.Url;

public abstract class BaseVisitor
  implements IVisitor {
  public void visitHeavyCache(HeavyCache heavyCache) {
/* 14 */     for (Url url : heavyCache.getUrls().values()) {
/* 15 */       visitUrl(url);
    }

/* 18 */     for (Service service : heavyCache.getServices().values()) {
/* 19 */       visitService(service);
    }
  }


  public void visitHeavyCall(HeavyCall heavyCall) {
/* 25 */     for (Url url : heavyCall.getUrls().values()) {
/* 26 */       visitUrl(url);
    }

/* 29 */     for (Service service : heavyCall.getServices().values()) {
/* 30 */       visitService(service);
    }
  }


  public void visitHeavyReport(HeavyReport heavyReport) {
/* 36 */     if (heavyReport.getHeavySql() != null) {
/* 37 */       visitHeavySql(heavyReport.getHeavySql());
    }

/* 40 */     if (heavyReport.getHeavyCall() != null) {
/* 41 */       visitHeavyCall(heavyReport.getHeavyCall());
    }

/* 44 */     if (heavyReport.getHeavyCache() != null) {
/* 45 */       visitHeavyCache(heavyReport.getHeavyCache());
    }
  }


  public void visitHeavySql(HeavySql heavySql) {
/* 51 */     for (Url url : heavySql.getUrls().values()) {
/* 52 */       visitUrl(url);
    }

/* 55 */     for (Service service : heavySql.getServices().values())
/* 56 */       visitService(service); 
  }

  public void visitService(Service service) {}

  public void visitUrl(Url url) {}
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/heavy/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */